package com.dstz.form.manager.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dstz.base.core.util.StringUtil;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.form.dao.FormCustSqlRelationDao;
import com.dstz.form.manager.FormCustSqlRelationManager;
import com.dstz.form.model.custsql.FormCustSqlRelation;
/**
 * 自定义SQL列表与表单关联表 Manager处理实现类
 * @author Jeff
 * @email for_office@qq.com
 * @time 2019-09-06 21:38:46
 */
@Service("formCustSqlRelationManager")
public class FormCustSqlRelationManagerImpl extends BaseManager<String, FormCustSqlRelation> implements FormCustSqlRelationManager{
	@Resource
	FormCustSqlRelationDao formCustSqlRelationDao;

	@Override
	public FormCustSqlRelation getByFormKey(String formKey) {
		if(StringUtil.isEmpty(formKey))return null;
		
		return formCustSqlRelationDao.getByFormKey(formKey);
	}

	@Override
	public void removeByListId(String id) {
		formCustSqlRelationDao.removeByListId(id);
	}
}
